package com.mzhmxh.service.impl;

import com.mzhmxh.mapper.SmbmsUsermapper;
import com.mzhmxh.pojo.SmbmsProvider;
import com.mzhmxh.pojo.SmbmsUser;
import com.mzhmxh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author LiJinCheng
 * @Date 2020/7/11 6:34 下午
 * @Version 1.0
 * @package com.mzhmxh.service.impl
 **/
@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private SmbmsUsermapper usermapper;

    @Override
    public SmbmsUser selectByPrimaryKey(SmbmsUser user) {
        return usermapper.selectByPrimaryKey(user);
    }

    @Override
    public List<Map<String, Object>> getList(SmbmsUser user) {
        return usermapper.getList(user);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return usermapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(SmbmsUser record) {
        return usermapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(SmbmsUser record) {
        return usermapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public Map<String, Object> getUserOne(Long id) {
        return usermapper.getUserOne(id);
    }

    @Override
    public SmbmsUser selectByCOde(String code) {
        return usermapper.selectByCOde(code);
    }

}
